import { getStroage, setStroage, removeStroage } from './base'
const IndexDataStroageKey = 'indexdatakey'
export const setIndexDataCache = function (value) {
  setStroage(IndexDataStroageKey, JSON.stringify(value))
}
export const getIndexDataCache = function () {
  const indexData = getStroage(IndexDataStroageKey)
  return JSON.parse(indexData)
}
export const removeIndexDataCache = function () {
  removeStroage(IndexDataStroageKey)
}
